import {Loading} from 'element-ui'

let loading;
export const startLoading= ()=>{
  loading = Loading.service({
    lock: true,
    text:'登录中...',
    spinner: 'el-icon-loading',
    background: 'rgba(0, 0, 0, 0.7)'
  })
};
export const endLoading = ()=>{
  loading.close();
};

